package com.xatl.simulated.constant;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author pandi
 * @create 2020-11-06 14:53
 */
@Data
@Component
@PropertySource("classpath:mqtt.properties")
public class MqttPropertiesUtils {

    @Value("${mqtt.username}")
    private String username;

    @Value("${mqtt.password}")
    private String password;

    @Value("${mqtt.topic}")
    private String topic;

    @Value("${mqtt.qos}")
    private Integer qos;

    @Value("${mqtt.clientId.subscribe}")
    private String subscribe;

    @Value("${mqtt.clientId.publish}")
    private String publish;

    @Value("${mqtt.host}")
    private String host;

    @Value("${mqtt.connection.timeout}")
    private Integer timeout;

    @Value("${mqtt.keep.alive.interval}")
    private Integer interval;


}
